Skip to content

hash: HKDF over byte pieces (superproject) - #58

Merged
pinhopro merged 22 commits into
mainfrom
hash/hkdf-pieces
Nov 25, 2026
Merged

pinhopro merged 22 commits into
mainfrom
hash/hkdf-pieces

Conversation

@pinhopro

Copy link
Copy Markdown
Contributor

HKDF over byte pieces on the superproject side: libs/hash at webcpporg/hash's merge of hash/hkdf-pieces, hash's doc tables and allocation collection reading the pieces forms, the hash_jamfiles fixtures (extract_on_bearssl, the webcrypto messages' named inputs), and tools/node-test/node-pre.js ending a test as node ends on its own (process.exitCode, with process.exit as an unref'd 10 s fallback) around node #64274, whose process.exit deadlock hung Emscripten tests (async_heavy, 5 in 300 runs). Change: webcpporg/proposals (hkdf-pieces). Every library's Emscripten lanes rerun on the new runner. Verified locally on every lane before merge; origin/main merged.

R added 22 commits November 23, 2026 20:35
…other HKDF functions once sodium and bearssl have them
…ne default sentence once openssl and botan have the pieces forms
…otan, and a faster pieces harness (gitlink 44bf2b0)
…byte pieces on the synchronous backends (gitlink ccc01fe)
…to messages' named inputs

extract_on_bearssl is test/messages/extract_on_bearssl's Emscripten case. webcrypto_synchronous and async_hkdf_not_in_webcrypto follow their messages, which pass named arrays instead of {}, ambiguous since the HKDF pieces forms.
…4274

In node 26.13.0, process.exit can deadlock: a background compile of the
main isolate waits for a GC that the exiting main thread never runs
(node issue #64274, fixed by node PR #66171, in no release yet). The
pre-js called process.exit on the turn after a test's status, and hash's
async_heavy hung there 5 times in 300 runs.

The pre-js now sets process.exitCode to the first status and lets node end
on its own, which disposes the isolate first; it calls process.exit only
as an unref'd fallback 10 s later, for a test that something still holds.
async_heavy ended on its own 0.2 ms to 5.4 s after its status under 10 to
36 runs at once on 18 cores; 300 runs, 10 at a time: 0 hangs. The first
status still wins over later writes, and the bound's exits are unchanged.

A fixture pins that a test with nothing pending ends without
process.exit (node emits beforeExit); the docs describe the grace.
@pinhopro
pinhopro merged commit 5ee3e98 into main Nov 25, 2026
2 of 12 checks passed
@pinhopro
pinhopro deleted the hash/hkdf-pieces branch November 25, 2026 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant